 <template>
 <el-page-header @back="goBack" content="需求">
     
</el-page-header>
<el-button @click="drawer = true" type="primary" style="margin-left: 16px;">
  点我打开
</el-button>
<el-drawer
  title="我是标题"
  v-model="drawer"
  :with-header="false">
  <div class="demo-drawer__content">
    <el-form :model="form">
      <el-form-item label="活动名称" :label-width="formLabelWidth">
        <el-input v-model="form.name" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="活动区域" :label-width="formLabelWidth">
        <el-select v-model="form.region" placeholder="请选择活动区域">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
    </el-form>
    <div class="demo-drawer__footer">
      <el-button @click="cancelForm">取 消</el-button>
      <el-button type="primary" @click="$refs.drawer.closeDrawer()" :loading="loading">{{ loading ? '提交中 ...' : '确 定' }}</el-button>
    </div>
  </div>
</el-drawer>
    <el-table
      :data="tableData"
      style="width: 100%">
      <el-table-column
        prop="title"
        label="需求">
      </el-table-column>
      <el-table-column
        prop="createTime"
        label="创建时间"
        width="180">
      </el-table-column>
      <el-table-column
        prop="username"
        label="提交人"
        width="180">
      </el-table-column>
    </el-table>
  </template>

  <script>
    export default {
      data() {
        return {
            drawer: false,
            form: {
        name: '',
        region: '',
        date1: '',
        date2: '',
        delivery: false,
        type: [],
        resource: '',
        desc: ''
      },
      formLabelWidth: '80px',
          tableData: [{
            createTime: '2016-05-02',
            username: '王小虎',
            title: '上海市普陀区金沙江路 1518 弄'
          }, {
            createTime: '2016-05-02',
            username: '王小虎',
            title: '上海市普陀区金沙江路 1518 弄'
          },{
            createTime: '2016-05-02',
            username: '王小虎',
            title: '上海市普陀区金沙江路 1518 弄'
          },{
            createTime: '2016-05-02',
            username: '王小虎',
            title: '上海市普陀区金沙江路 1518 弄'
          }]
        }
      }
    }
  </script>